home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function updateSpeechBubble(sweetType)
- {
- _root.mcInterface.holding.gotoAndStop(sweetType);
- }
- function updateTimerText()
- {
- tempMins = Math.floor(_root.timer / 60);
- tempSeconds = _root.timer - tempMins * 60;
- if(tempMins == 0 && tempSeconds == 0)
- {
- _root.endGame();
- }
- else
- {
- if(tempSeconds < 10)
- {
- tempSeconds = "0" + tempSeconds;
- }
- _root.mcInterface.time.text = tempMins + ":" + tempSeconds;
- }
- }
- function updateScoreText(valueGained)
- {
- if(!(_root.currentScore == 0 && valueGained < 0))
- {
- _root.currentScore += valueGained;
- }
- if(_root.currentScore > 0)
- {
- tempPound = Math.floor(_root.currentScore / 100);
- if(tempPound < 10)
- {
- tempPound = "0" + tempPound;
- }
- tempPenny = _root.currentScore - tempPound * 100;
- if(tempPenny < 10)
- {
- tempPenny = "0" + tempPenny;
- }
- }
- else
- {
- tempPound = "00";
- tempPenny = "00";
- }
- _root.mcInterface.score.text = tempPound + "." + tempPenny;
- }
- count = 0;
- }
-